package com.net;

public class TemplateMethod {

  public final void print(String messsage){
    System.out.println("###########");
    wrapPrint(messsage);
    System.out.println("###########");
  }

  protected void wrapPrint(String message) {

  }

  public static void main(String[] args) {
    new TemplateMethod(){
      @Override
      protected void wrapPrint(String message) {
        System.out.println("("+message+")");
      }
    }.print("hello");
  }

}
